<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Time.Calendar.Week</span><span>
</span><span id="line-2"></span><span>    </span><span class="hs-special">(</span><span>
</span><span id="line-3"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Week</span></span><span>
</span><span id="line-4"></span><span>      </span><span class="annot"><a href="Data.Time.Calendar.Week.html#DayOfWeek"><span class="hs-identifier">DayOfWeek</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-5"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Week.html#dayOfWeek"><span class="hs-identifier">dayOfWeek</span></a></span><span>
</span><span id="line-6"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Days.html"><span class="hs-identifier">Data.Time.Calendar.Days</span></a></span><span>
</span><span id="line-9"></span><span>
</span><span id="line-10"></span><span class="hs-keyword">data</span><span> </span><span id="DayOfWeek"><span class="annot"><a href="Data.Time.Calendar.Week.html#DayOfWeek"><span class="hs-identifier hs-var">DayOfWeek</span></a></span></span><span>
</span><span id="line-11"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span id="Monday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Monday"><span class="hs-identifier hs-var">Monday</span></a></span></span><span>
</span><span id="line-12"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Tuesday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Tuesday"><span class="hs-identifier hs-var">Tuesday</span></a></span></span><span>
</span><span id="line-13"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Wednesday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Wednesday"><span class="hs-identifier hs-var">Wednesday</span></a></span></span><span>
</span><span id="line-14"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Thursday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Thursday"><span class="hs-identifier hs-var">Thursday</span></a></span></span><span>
</span><span id="line-15"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Friday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Friday"><span class="hs-identifier hs-var">Friday</span></a></span></span><span>
</span><span id="line-16"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Saturday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Saturday"><span class="hs-identifier hs-var">Saturday</span></a></span></span><span>
</span><span id="line-17"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span id="Sunday"><span class="annot"><a href="Data.Time.Calendar.Week.html#Sunday"><span class="hs-identifier hs-var">Sunday</span></a></span></span><span>
</span><span id="line-18"></span><span>    </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679068994"><span id="local-6989586621679068996"><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek -&gt; Bool
(DayOfWeek -&gt; DayOfWeek -&gt; Bool)
-&gt; (DayOfWeek -&gt; DayOfWeek -&gt; Bool) -&gt; Eq DayOfWeek
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: DayOfWeek -&gt; DayOfWeek -&gt; Bool
$c/= :: DayOfWeek -&gt; DayOfWeek -&gt; Bool
== :: DayOfWeek -&gt; DayOfWeek -&gt; Bool
$c== :: DayOfWeek -&gt; DayOfWeek -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679068987"><span id="local-6989586621679068989"><span id="local-6989586621679068991"><span class="annot"><span class="annottext">Int -&gt; DayOfWeek -&gt; ShowS
[DayOfWeek] -&gt; ShowS
DayOfWeek -&gt; String
(Int -&gt; DayOfWeek -&gt; ShowS)
-&gt; (DayOfWeek -&gt; String)
-&gt; ([DayOfWeek] -&gt; ShowS)
-&gt; Show DayOfWeek
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [DayOfWeek] -&gt; ShowS
$cshowList :: [DayOfWeek] -&gt; ShowS
show :: DayOfWeek -&gt; String
$cshow :: DayOfWeek -&gt; String
showsPrec :: Int -&gt; DayOfWeek -&gt; ShowS
$cshowsPrec :: Int -&gt; DayOfWeek -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679068969"><span id="local-6989586621679068979"><span id="local-6989586621679068982"><span id="local-6989586621679068984"><span class="annot"><span class="annottext">ReadPrec [DayOfWeek]
ReadPrec DayOfWeek
Int -&gt; ReadS DayOfWeek
ReadS [DayOfWeek]
(Int -&gt; ReadS DayOfWeek)
-&gt; ReadS [DayOfWeek]
-&gt; ReadPrec DayOfWeek
-&gt; ReadPrec [DayOfWeek]
-&gt; Read DayOfWeek
forall a.
(Int -&gt; ReadS a)
-&gt; ReadS [a] -&gt; ReadPrec a -&gt; ReadPrec [a] -&gt; Read a
readListPrec :: ReadPrec [DayOfWeek]
$creadListPrec :: ReadPrec [DayOfWeek]
readPrec :: ReadPrec DayOfWeek
$creadPrec :: ReadPrec DayOfWeek
readList :: ReadS [DayOfWeek]
$creadList :: ReadS [DayOfWeek]
readsPrec :: Int -&gt; ReadS DayOfWeek
$creadsPrec :: Int -&gt; ReadS DayOfWeek
</span><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Read</span></a></span></span></span></span></span><span class="hs-special">)</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-comment">-- | \&quot;Circular\&quot;, so for example @[Tuesday ..]@ gives an endless sequence.</span><span>
</span><span id="line-21"></span><span class="hs-comment">-- Also: 'fromEnum' gives [1 .. 7] for [Monday .. Sunday], and 'toEnum' performs mod 7 to give a cycle of days.</span><span>
</span><span id="line-22"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679068957"><span id="local-6989586621679068959"><span id="local-6989586621679068963"><span id="local-6989586621679068965"><span class="annot"><a href="../../base/src/GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="Data.Time.Calendar.Week.html#DayOfWeek"><span class="hs-identifier hs-type">DayOfWeek</span></a></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-23"></span><span>    </span><span id="local-6989586621679068937"><span class="annot"><span class="annottext">toEnum :: Int -&gt; DayOfWeek
</span><a href="../../base/src/GHC.Enum.html#toEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span id="local-6989586621679068935"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679068935"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-24"></span><span>        </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-identifier hs-var">mod</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679068935"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-25"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Sunday"><span class="hs-identifier hs-var">Sunday</span></a></span><span>
</span><span id="line-26"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Monday"><span class="hs-identifier hs-var">Monday</span></a></span><span>
</span><span id="line-27"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Tuesday"><span class="hs-identifier hs-var">Tuesday</span></a></span><span>
</span><span id="line-28"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Wednesday"><span class="hs-identifier hs-var">Wednesday</span></a></span><span>
</span><span id="line-29"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Thursday"><span class="hs-identifier hs-var">Thursday</span></a></span><span>
</span><span id="line-30"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">5</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Friday"><span class="hs-identifier hs-var">Friday</span></a></span><span>
</span><span id="line-31"></span><span>            </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Saturday"><span class="hs-identifier hs-var">Saturday</span></a></span><span>
</span><span id="line-32"></span><span>    </span><span id="local-6989586621679068933"><span class="annot"><span class="annottext">fromEnum :: DayOfWeek -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Monday"><span class="hs-identifier hs-var">Monday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span>
</span><span id="line-33"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Tuesday"><span class="hs-identifier hs-var">Tuesday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span>
</span><span id="line-34"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Wednesday"><span class="hs-identifier hs-var">Wednesday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span>
</span><span id="line-35"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Thursday"><span class="hs-identifier hs-var">Thursday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span>
</span><span id="line-36"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Friday"><span class="hs-identifier hs-var">Friday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">5</span></span><span>
</span><span id="line-37"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Saturday"><span class="hs-identifier hs-var">Saturday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">6</span></span><span>
</span><span id="line-38"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#Sunday"><span class="hs-identifier hs-var">Sunday</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span>
</span><span id="line-39"></span><span>    </span><span id="local-6989586621679068928"><span class="annot"><span class="annottext">enumFromTo :: DayOfWeek -&gt; DayOfWeek -&gt; [DayOfWeek]
</span><a href="../../base/src/GHC.Enum.html#enumFromTo"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromTo</span></a></span></span><span> </span><span id="local-6989586621679068927"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068927"><span class="hs-identifier hs-var">wd1</span></a></span></span><span> </span><span id="local-6989586621679068926"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068926"><span class="hs-identifier hs-var">wd2</span></a></span></span><span>
</span><span id="line-40"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068927"><span class="hs-identifier hs-var">wd1</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068926"><span class="hs-identifier hs-var">wd2</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068927"><span class="hs-identifier hs-var">wd1</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-41"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#enumFromTo"><span class="hs-identifier hs-var">enumFromTo</span></a></span><span> </span><span id="local-6989586621679068925"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068925"><span class="hs-identifier hs-var">wd1</span></a></span></span><span> </span><span id="local-6989586621679068924"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068924"><span class="hs-identifier hs-var">wd2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068925"><span class="hs-identifier hs-var">wd1</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; [DayOfWeek] -&gt; [DayOfWeek]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek -&gt; [DayOfWeek]
forall a. Enum a =&gt; a -&gt; a -&gt; [a]
</span><a href="../../base/src/GHC.Enum.html#enumFromTo"><span class="hs-identifier hs-var">enumFromTo</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek
forall a. Enum a =&gt; a -&gt; a
</span><a href="../../base/src/GHC.Enum.html#succ"><span class="hs-identifier hs-var">succ</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068925"><span class="hs-identifier hs-var">wd1</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068924"><span class="hs-identifier hs-var">wd2</span></a></span><span>
</span><span id="line-42"></span><span>    </span><span id="local-6989586621679068914"><span class="annot"><span class="annottext">enumFromThenTo :: DayOfWeek -&gt; DayOfWeek -&gt; DayOfWeek -&gt; [DayOfWeek]
</span><a href="../../base/src/GHC.Enum.html#enumFromThenTo"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThenTo</span></a></span></span><span> </span><span id="local-6989586621679068913"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068913"><span class="hs-identifier hs-var">wd1</span></a></span></span><span> </span><span id="local-6989586621679068912"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068912"><span class="hs-identifier hs-var">wd2</span></a></span></span><span> </span><span id="local-6989586621679068911"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068911"><span class="hs-identifier hs-var">wd3</span></a></span></span><span>
</span><span id="line-43"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068912"><span class="hs-identifier hs-var">wd2</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068911"><span class="hs-identifier hs-var">wd3</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068913"><span class="hs-identifier hs-var">wd1</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068912"><span class="hs-identifier hs-var">wd2</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-44"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#enumFromThenTo"><span class="hs-identifier hs-var">enumFromThenTo</span></a></span><span> </span><span id="local-6989586621679068910"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068910"><span class="hs-identifier hs-var">wd1</span></a></span></span><span> </span><span id="local-6989586621679068909"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068909"><span class="hs-identifier hs-var">wd2</span></a></span></span><span> </span><span id="local-6989586621679068908"><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068908"><span class="hs-identifier hs-var">wd3</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068910"><span class="hs-identifier hs-var">wd1</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; [DayOfWeek] -&gt; [DayOfWeek]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; DayOfWeek -&gt; DayOfWeek -&gt; [DayOfWeek]
forall a. Enum a =&gt; a -&gt; a -&gt; a -&gt; [a]
</span><a href="../../base/src/GHC.Enum.html#enumFromThenTo"><span class="hs-identifier hs-var">enumFromThenTo</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068909"><span class="hs-identifier hs-var">wd2</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int -&gt; DayOfWeek
forall a. Enum a =&gt; Int -&gt; a
</span><a href="../../base/src/GHC.Enum.html#toEnum"><span class="hs-identifier hs-var">toEnum</span></a></span><span> </span><span class="annot"><span class="annottext">(Int -&gt; DayOfWeek) -&gt; Int -&gt; DayOfWeek
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068909"><span class="hs-identifier hs-var">wd2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">DayOfWeek -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068910"><span class="hs-identifier hs-var">wd1</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">DayOfWeek
</span><a href="#local-6989586621679068908"><span class="hs-identifier hs-var">wd3</span></a></span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span class="annot"><a href="Data.Time.Calendar.Week.html#dayOfWeek"><span class="hs-identifier hs-type">dayOfWeek</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Days.html#Day"><span class="hs-identifier hs-type">Day</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.Calendar.Week.html#DayOfWeek"><span class="hs-identifier hs-type">DayOfWeek</span></a></span><span>
</span><span id="line-47"></span><span id="dayOfWeek"><span class="annot"><span class="annottext">dayOfWeek :: Day -&gt; DayOfWeek
</span><a href="Data.Time.Calendar.Week.html#dayOfWeek"><span class="hs-identifier hs-var hs-var">dayOfWeek</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.Calendar.Days.html#ModifiedJulianDay"><span class="hs-identifier hs-type">ModifiedJulianDay</span></a></span><span> </span><span id="local-6989586621679068905"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679068905"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; DayOfWeek
forall a. Enum a =&gt; Int -&gt; a
</span><a href="../../base/src/GHC.Enum.html#toEnum"><span class="hs-identifier hs-var">toEnum</span></a></span><span> </span><span class="annot"><span class="annottext">(Int -&gt; DayOfWeek) -&gt; Int -&gt; DayOfWeek
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Int
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">(Integer -&gt; Int) -&gt; Integer -&gt; Int
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679068905"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">3</span></span><span>
</span><span id="line-48"></span></pre></body></html>